<? 
	session_start();
	require("connect.php");
	$matt=$_REQUEST["matt"];	
	$tieude=$_REQUEST["tieude"];
	$trichdan=$_REQUEST["trichdan"];
	$anh=$_REQUEST["anh"];
	$noidung=$_REQUEST["noidung"];
	$nguoidang=$_REQUEST["tacgia"];
	$ngay=$_REQUEST["demol1"];
	$sqldate = strtotime($ngay);
	$date = date('Y-m-d', $sqldate);		
	$malt=$_REQUEST["loaitin"];
	$trangthai=$_REQUEST["trangthai"];		
	$sql="update tintuc set tieude='{$tieude}', trichdan='{$trichdan}', anh='{$anh}', noidung='{$noidung}', nguoidang='{$nguoidang}', ngay='{$date}', malt='{$malt}' where matt='{$matt}'";	
	mysql_query("$sql") or die("Error!");
	mysql_close();
	header("Location:tintuc_admin.php");
	
?>